package com.xiao.community.feign;

import com.xiao.group.common.Vo.BarginHuodongEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("bargain-server")
@Component
public interface BarginFeign {
    @RequestMapping("/bargain/barginhuodong/info")
    public BarginHuodongEntity info(@RequestParam("barinId")Integer barinId,
                                    @RequestParam("userId")Integer userId);

    @RequestMapping("/bargain/barginhuodong/tohd")
    public  Integer tohd(@RequestParam("userId") Integer userId,
                               @RequestParam("barinId") Integer barinId);
}
